package cn.edu.swust.adressbook.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;

@Entity
public class Group implements Serializable {
    @Id(autoincrement = true)
    private Long id;            //分组id
    private String name;        //组名
    private Integer contactCount;   //联系人个数
    public Integer getContactCount() {
        return this.contactCount;
    }
    public void setContactCount(Integer contactCount) {
        this.contactCount = contactCount;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 1239001670)
    public Group(Long id, String name, Integer contactCount) {
        this.id = id;
        this.name = name;
        this.contactCount = contactCount;
    }
    @Generated(hash = 117982048)
    public Group() {
    }

}
